package com.bjesc_b2c.app.appraiset.adapter;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.R;

import java.util.List;

import app.pinggushi.bjesc.com.baserecyclerview.adapter.CommonAdapter;
import app.pinggushi.bjesc.com.baserecyclerview.adapter.base.ViewHolder;
import master_bean.LastTransferredAddressBean;

/**
 * Created by Jason Chen on 2017/2/22.
 */

public class LastTransferredAddressAdapter extends CommonAdapter<LastTransferredAddressBean> {
    public LastTransferredAddressAdapter(Context context, int layoutId, List<LastTransferredAddressBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convertView(ViewHolder holder, LastTransferredAddressBean bean, int position) {
            holder.setText(R.id.tv_addres_name,bean.getProvince());
            if(bean.isCheck()){
                holder.setTextColorRes(R.id.tv_addres_name, R.color.colorFFFF7900);
                holder.setVisible(R.id.iv_checked,true);
            }else{
                holder.setTextColorRes(R.id.tv_addres_name, R.color.colorFF030303);
                holder.setVisible(R.id.iv_checked,false);
            }
    }
}
